@space: 0px;
@border_light: #d9d9d9;
@border_dark: #868686;

.modalDefault() {
  // :global {
  // .ant-modal-content {
  //   background-color: #222629 !important;
  //   .ant-modal-header {
  //     padding-top: 18px;
  //     padding-bottom: 0;
  //     background-color: #222629 !important;
  //     border-bottom: 0;
  //   }

  //   .ant-modal-body {
  //     padding: @space;
  //   }

  //   .ant-modal-footer {
  //     padding: @space;
  //     padding-top: 0;
  //     border-top: 0;
  //   }

  //   .ant-btn + .ant-btn:not(.ant-dropdown-trigger) {
  //     margin-left: 16px;
  //   }

  //   .ant-btn {
  //     border-radius: 5px;
  //   }

  //   .ant-btn-primary {
  //     // background: #18a0fb;
  //     border-color: var(--bd-primary);
  //   }
  // }
  // }
}

.modal {
  .modalDefault();

  .titleDiv {
    display: flex;
    flex-direction: row;
    align-items: center;
    .left {
      display: flex;
      flex-direction: row;
      align-items: center;
      margin-right: 20px;
      .titleLogo {
        width: 30px;
        height: 30px;
        margin-right: 10px;
      }

      .title {
        font-weight: 500;
        font-size: 18px;
        font-family: PingFang SC;
        line-height: 18px;
        letter-spacing: 0;
        text-align: left;
      }
    }
  }

  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 586px;
    padding: 22px 24px 24px 24px;
    overflow: hidden;
    .content {
      display: flex;
      flex-direction: column;
      width: 100%;
      height: 100%;
      overflow: hidden;
      .header {
        width: 100%;
        margin-bottom: 16px;
        overflow: hidden;
        .select {
          :global {
            .ant-select {
              width: 200px;
            }
          }
        }
      }
      .bottom {
        display: flex;
        flex: 1;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        .bottomContent {
          display: flex;
          flex-direction: row;
          width: 100%;
          height: 100%;
          overflow: hidden;
          .left {
            flex: 1;
            height: 100%;
            overflow: hidden;
          }
          .right {
            width: 526px;
            height: 100%;
            overflow: hidden;
            .table {
              width: 100%;
              max-height: 100%;
              overflow: hidden;
              border: 1px solid var(--ant-cus-bd);
              border-radius: 5px;
              :global {
                .ant-table-wrapper {
                  .ant-table {
                    background-color: var(--bg-main);
                    .ant-table-container {
                      border: none;
                      .ant-table-header {
                        .ant-table-thead {
                          .ant-table-cell {
                            height: 28px;
                            padding: 4px 11px;
                            font-size: 12px;
                            line-height: 20px;
                            background-color: #383c3e;
                            border-right: 1px solid #4e5154;
                            border-bottom: 1px solid #4e5154;
                            &:first-child {
                              border-top-left-radius: 5px;
                            }
                            &:last-child {
                              border-right: none;
                              border-top-right-radius: 5px;
                            }
                          }
                        }
                      }
                      .ant-table-body {
                        .ant-table-tbody {
                          .ant-table-row {
                            .ant-table-cell {
                              padding: 4px 11px;
                              font-size: 12px;
                              line-height: 20px;
                              border-right: 1px solid #4e5154;
                              border-bottom: 1px solid #4e5154;
                              &:last-child {
                                border-right: none;
                              }
                            }
                            &:last-child {
                              .ant-table-cell {
                                border-bottom: none;
                                &:first-child {
                                  border-bottom-left-radius: 5px;
                                }
                                &:last-child {
                                  border-bottom-right-radius: 5px;
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
              .timeSlot {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 100%;
                font-size: 12px;
                .beginTime,
                .endTime {
                  width: 40px;
                  text-align: center;
                }
              }
              .dataSourceId {
                display: flex;
                align-items: center;
                width: 100%;
                overflow: hidden;
                .radio {
                  width: 6%;
                }
                .ratio {
                  width: 29%;
                  text-align: center;
                }
                .predictSource {
                  width: 27%;
                  text-align: center;
                }
                .maxNum {
                  width: 19%;
                  text-align: center;
                }
                .minNum {
                  width: 19%;
                  text-align: center;
                }
              }
              .dataSourceIdShow {
                display: flex;
                align-items: center;
                width: 100%;
                overflow: hidden;
                .radio,
                .ratio,
                .predictSource,
                .maxNum,
                .minNum {
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  overflow: hidden;
                }
                .radio {
                  width: 6%;
                  :global {
                    .ant-radio-wrapper {
                      margin-right: 0;
                      margin-bottom: 3px;
                    }
                  }
                }
                .ratio {
                  width: 29%;
                }
                .predictSource {
                  width: 27%;
                }
                .maxNum {
                  width: 19%;
                }
                .minNum {
                  width: 19%;
                }
              }
              .fixedValue {
                display: flex;
                align-items: center;
                width: 100%;
                overflow: hidden;
                .radio {
                  width: 22%;
                  text-align: center;
                }
                .name {
                  flex: 1;
                  text-align: center;
                }
              }
              .fixedValueShow {
                display: flex;
                align-items: center;
                width: 100%;
                overflow: hidden;
                .radio,
                .fixedValueShowInput {
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  overflow: hidden;
                }
                .radio {
                  width: 22%;
                  :global {
                    .ant-radio-wrapper {
                      margin-right: 0;
                      margin-bottom: 3px;
                    }
                  }
                }
                .fixedValueShowInput {
                  flex: 1;
                }
              }
            }
          }
        }
      }
    }
  }
}
